| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

ObjDecodeOptions.h
1 // ObjDecodeOptions.h
3 //
5
6 namespace nkGraphics
7 {
11 enum class OBJ_SPACE
12 {
13 UP_Y_FRONT_Z = 0,
14 UP_Y_FRONT_MINUS_Z
15 } ;
16 }
17
18 namespace nkGraphics
19 {
23 struct ObjDecodeOptions final
24 {
25 nkMemory::String _mtlFolderAbsPath ;
26
27 OBJ_SPACE _objSpace = OBJ_SPACE::UP_Y_FRONT_Z ;
28
29 bool _invertUvY = false ;
30 bool _invertWindingOrder = false ;
31 bool _loadImages = false ;
32 } ;
33 }
nkGraphics::OBJ_SPACE
OBJ_SPACE
Enumerates all supported spaces the obj data can come from.
Definition: ObjDecodeOptions.h:12
nkGraphics::ObjDecodeOptions::_loadImages
bool _loadImages
Whether the found images should also be decoded or not. Note that only actually used images will be d...
Definition: ObjDecodeOptions.h:31
nkGraphics::OBJ_SPACE::UP_Y_FRONT_Z
@ UP_Y_FRONT_Z
Y is up, Z is front. This is the original space, which won't transform anything.
nkGraphics::ObjDecodeOptions::_objSpace
OBJ_SPACE _objSpace
The space the incoming data is coming from.
Definition: ObjDecodeOptions.h:27
nkGraphics::OBJ_SPACE::UP_Y_FRONT_MINUS_Z
@ UP_Y_FRONT_MINUS_Z
Y is up, -Z is front. This will negate the z coordinate coming from the data.
nkMemory::String
Class holding information about a string, with ownership over the data.
Definition: String.h:22
nkGraphics::ObjDecodeOptions
Describes all options available when decoding the obj format.
Definition: ObjDecodeOptions.h:24
nkGraphics::ObjDecodeOptions::_invertWindingOrder
bool _invertWindingOrder
Whether the winding order has to be inverted. If turned on, this swaps vertices 1 and 2 of a given tr...
Definition: ObjDecodeOptions.h:30
nkGraphics::ObjDecodeOptions::_invertUvY
bool _invertUvY
Whether the Y coordinate of the texture coordinates should be flipped (1 - Y) or not.
Definition: ObjDecodeOptions.h:29
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::ObjDecodeOptions::_mtlFolderAbsPath
nkMemory::String _mtlFolderAbsPath
The absolute path to the folder containing the mtl files referenced within the obj data.
Definition: ObjDecodeOptions.h:25